/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package replica.transaction;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author andrea
 */
public class Timeout implements Runnable
{
    private long milliseconds;
    FrontEnd entity;
    
    public Timeout(long milliseconds,FrontEnd entity )
    {
        this.milliseconds=milliseconds;
        this.entity=entity;
    }

    @Override
    public void run() 
    {
        try {
            Thread.sleep(milliseconds);
            //entity.stopWaiting();
        } catch (InterruptedException ex) 
        {
            System.out.println("Timeout interrupted");
        }
    }
    
}
